import http from 'service/util/http.js'

export default {
    // 平台活动列表
    list(data) {
        return http.post('/activity/list', data, ['userId', 'pageNo', 'pageSize'])
    },
    // 最新活动
    new(data) {
        return http.post('/activity/new', data, ['activityId', 'viewDate', 'userId'])
    }
}